package org.utils.cmdline.parameters;

import org.utils.cmdline.GenericCommand;

public class MessageParameter extends NoValueParameter {
    
    private String message;
    
//accessing
    public String message() {
	return message;	
    }
    
    public void message(String aMessage) {
	message = aMessage;
    }
    
    public void out() {
	super.out(message());
    }
    
    public void out(String runtimeMessage) {
	super.out(message() + " " + runtimeMessage);
    }
    
//action
    public void actUpon(GenericCommand command) {
	out();
    }
    
//construction
    public MessageParameter(int additionalParameterLength,String aMessage) {
	super(additionalParameterLength);
	message(aMessage);
	startBeingUsed();
    }
    
}

